const express = require('express')
const app = express()
app.use(express.json()) // for parsing application/json
app.use(express.urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded


const users = require('./router/users')
app.use(users)

const goods = require('./router/goods')
app.use(goods)



app.use('/static', express.static('./public/images'))

app.listen('3000',() => {
  console.log("服务器启动成功！http://localhost:3000");
})